import instance from '@/http'

export const getUserInfo = (data: { account: string, password: string}) => instance.post('/user/getUserInfo', data)
export const bindAccount = (data: { account: string, url: string, onlyId: string }) => instance.post('/user/bindAccount', data)
export const changePassword = (data: { id: string, oldPassword: string, newPassword: string }) => instance.post('/user/changePassword', data)
export const changeName = (data: { id: string, name: string}) => instance.post('/user/changeName', data)
export const changeSex = (data: { id: string, sex: string}) => instance.post('/user/changeSex', data)
export const changeEmail = (data: { id: string, email: string}) => instance.post('/user/changeEmail', data)
